<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 1.引入外部的vue.js -->
		<script src="./js/vue@3.3.4.global.js"></script>
	</head>
	<body>
		<!-- 2.创建视图 -->
		<div id="app">
			<!-- 展示数据 -->
			<ul>
				<li v-for="(stu,index) in stuList" :key="index">
					{{index}}--{{stu.id}}--{{stu.name}}--{{stu.age}}
				</li>
			</ul>
		</div>
		
	</body>
	<script>
		//3.创建Vue的实例
		const app = Vue.createApp({
			data(){
				return {
					/* json数组存放数据 */
					stuList: [
						{
							id: 1101,
							name: 'jack',
							age: 21
						},
						{
							id: 1102,
							name: 'rose',
							age: 20
						},
						{
							id: 1103,
							name: '梁山伯',
							age: 70
						}
					]
				}
			}
		})
		//4.挂载
		app.mount('#app')
	</script>
</html>